package com.ctp.socket.listener;

import com.ctp.thread.factory.ThreadFactory;

public class TraderListener extends AbstractTraderListener {

	public void processResult(String ret) {
		String[] params = ret.split(";");
		int method = Integer.parseInt(params[0]);

		switch (method) {
		case METHOD_FORM_CONFIRM:
			ThreadFactory.getTraderProcessor().confirmForm(params);
			break;
		case METHOD_BARGAIN_CONFIRM:
			ThreadFactory.getTraderProcessor().addBargain(params);
			break;
		default:
			break;
		}
	}

}
